package xing.domain.page.dto;

import xing.domain.page.PageModuleItem;
import xing.infrastructure.data.EntityBase;

import java.io.Serializable;

public class ModuleItemDto extends EntityBase<Long> implements Comparable<ModuleItemDto> ,Serializable {

    private Long contentid;
    private Long moduleid;
    private Long sort;
    private String title;
    private String target;
    private String imageurl;
    private String size;
    private String type;
    private Integer reftype;


    public Long getContentid() {
        return contentid;
    }

    public void setContentid(Long contentid) {
        this.contentid = contentid;
    }

    public Long getModuleid() {
        return moduleid;
    }

    public void setModuleid(Long moduleid) {
        this.moduleid = moduleid;
    }

    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public String getImageurl() {
        return imageurl;
    }

    public void setImageurl(String imageurl) {
        this.imageurl = imageurl;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getReftype() {
        return reftype;
    }

    public void setReftype(Integer reftype) {
        this.reftype = reftype;
    }

    @Override
    public int compareTo(ModuleItemDto o) {
        return this.sort.compareTo(o.sort);
    }
}
